from flask_mail import Message
from .. import mail

def send_verification_email(email, code):
    msg = Message(subject='【记账应用】您的验证码', recipients=[email])
    msg.body = f'您的验证码是：{code}，请在5分钟内使用。'
    mail.send(msg)
